Green video when playing a hevc video with vdpau
https://bugs.freedesktop.org/show_bug.cgi?id=111099
Bug ID: 111099
Summary: Green video when playing a hevc video with vdpau
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
On AMD hardware (at least Polaris and Raven), playing some videos with vdpau can result in a green screen.
Steps to reproduce:
- download https://www.libde265.org/hevc-bitstreams/bbb-1920x1080-cfg02.mkv
- use x11 (ie not wayland)
- mpv --vo=opengl --hwdec=vdpau bbb-1920x1080-cfg02.mkv
This is a regression that started with commit:cb446dc0fa5c68f681108f4613560543aa4cf553 (from MR
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1226)
Reverting the commits from this MR on master fixes the issue.
AFAIU the problem is this line:
/* do we have different screen objects ? */
if (res->screen != st->pipe->screen) {
_mesa_error(ctx, GL_INVALID_OPERATION, "VDPAUMapSurfacesNV")
Before this MR the screen objects were identical but now there are different.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=111099
Pierre-Eric Pelloux-Prayer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected], | |[email protected], | |[email protected] Keywords| |bisected, regression
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=111099
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|[email protected] |
--- Comment #1 from Michel Dänzer <[email protected]> ---
Thanks Pierre for tracking this down and for filing the report. Removing myself from the CC list, the one copy of updates I get from the dri-devel mailing list is enough. :)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=111099
--- Comment #2 from Michel Dänzer <[email protected]> --- Created attachment 144748
--> https://bugs.freedesktop.org/attachment.cgi?id=144748&action=edit
Proof-of-concept fix
Does this help for you?
Note that I can only reproduce this if I artificially disable st_vdpau_video/output_surface_dma_buf(). Might be worth looking into why those aren't working for you.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=111099
--- Comment #3 from Pierre-Eric Pelloux-Prayer <[email protected]> --- (In reply to Michel Dänzer from comment #2)
Quoted 5 lines
Created attachment 144748 [details] [review]
Proof-of-concept fixDoes this help for you?
Yes the patch fixes the issue.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=111099
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #4 from Michel Dänzer <[email protected]> --- Thanks for the report, fixed by
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1364 .
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel